/**
 * 
 */
package com.dp.behav.observer;

/**
 * Observer Design Pattern
 * 
 * It defines a one-to-many dependency between objects so that when one object
 * changes state , all of its dependents are notified and updated automatically
 * 
 * @author Sunaina.Sharma
 * 
 */
public class ObserverEx {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		WeatherData weatherdata = new WeatherData();
		CurrentConditionDisplay condDisplay = new CurrentConditionDisplay(
				weatherdata);
		weatherdata.setMeasurements(100, 100);
		weatherdata.setMeasurements(120, 90);
	}
}
